//
//  HMWeatherView.m
//  仿真开发
//
//  Created by jieChen on 17/3/23.
//  Copyright © 2017年 B.HOPE. All rights reserved.
//

#import "HMWeatherView.h"
#import <UIImageView+WebCache.h>

@interface HMWeatherView ()




/**
 天气温度
 */
@property (weak, nonatomic) IBOutlet UILabel *weatherTemperatureLabel;

/**
 天气日期
 */
@property (weak, nonatomic) IBOutlet UILabel *weatherDate;


@property (weak, nonatomic) IBOutlet UIImageView *weatherView;

@end



@implementation HMWeatherView

- (void) setModel:(HMWeather *)model {
    
    _model = model;
   // _weatherLabel.text = _model.weather;
    _weatherDate.text = _model.date;
    _weatherTemperatureLabel.text = _model.temperature;
    [_weatherView sd_setImageWithURL:[NSURL URLWithString:model.dayPictureUrl]];
}


@end
